/**
* @Author luof
* @Date 2024/6/21 14:01
* @Description
*/
<template>
  <el-card>
    <el-row gutter="20">
      <el-col :span="6" :xs="24">
        <div class="grid-content ep-bg-purple">
          <el-input
              v-model="searchForm.username"
              style="max-width: 600px"
              placeholder="Please input"
          >
            <template #prepend>账号</template>
          </el-input>
        </div>
      </el-col>
      <el-col :span="12" :xs="24">
        <div class="grid-content ep-bg-purple">
          <el-button type="success" :icon="Plus">添加用户</el-button>
          <el-button type="primary" :icon="Search">搜索用户</el-button>

        </div>

      </el-col>
    </el-row>
    <el-table scrollbar-always-on :data="tableData" border style="width: 100%">
      <el-table-column prop="date" label="Date"/>
      <el-table-column prop="name" label="Name"/>
      <el-table-column prop="address" label="Address"/>
      <el-table-column prop="address" label="Address"/>
      <el-table-column prop="address" label="Address"/>
      <el-table-column prop="address" label="Address"/>
    </el-table>
  </el-card>
</template>

<script setup lang="ts">
import {Plus, Search} from "@element-plus/icons-vue";

const tableData = [
  {
    date: '2016-05-03',
    name: 'Tom',
    address: 'No.',
  },
  {
    date: '2016-05-02',
    name: 'Tom',
    address: 'No. ',
  },
  {
    date: '2016-05-04',
    name: 'Tom',
    address: 'No. 189,',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  }, {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  }, {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  }, {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  }, {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  }, {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  }, {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  }, {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  }, {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  }, {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  }, {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  }, {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  }, {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  }, {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  }, {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  }, {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  }, {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  }, {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  }, {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  }, {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  }, {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  }, {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  }, {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  }, {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Gr',
  },


]

const searchForm = {
  username: ''
}
</script>

<style scoped lang="less">
.el-row {
  margin-bottom: 10px;
}

.el-row:last-child {
  margin-bottom: 0;
}

.el-col {
  border-radius: 4px;
}

.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
</style>